package com.bobo.service.favourite;

import com.bobo.dto.Counts;
import com.bobo.dto.Page;
import com.bobo.model.Favourite;
import com.bobo.model.Topic;

import java.util.List;

/**
 * Created by bobo on 16-10-28.
 */
public interface IFavouriteService {

    public Integer create(Favourite favourite);

    public boolean delete(Favourite favourite);

    public Page<Topic> getTopics(Integer userId, Integer current, Integer pageSize);

    public Integer getCount(Integer topicId);

    public boolean query(Favourite favourite);

    public Counts getCounts(Integer userId);
}
